home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / public / fax / src / port / ultrix / defs next >
Text File  |  1994-08-01  |  9KB  |  319 lines

  1. #    $Header: /usr/people/sam/fax/port/ultrix/RCS/defs,v 1.6 1994/03/29 01:07:43 sam Rel $
  2. #
  3. # FlexFAX Facsimile Software
  4. #
  5. # Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994 Sam Leffler
  6. # Copyright (c) 1991, 1992, 1993, 1994 Silicon Graphics, Inc.
  7. # Permission to use, copy, modify, distribute, and sell this software and 
  8. # its documentation for any purpose is hereby granted without fee, provided
  9. # that (i) the above copyright notices and this permission notice appear in
  10. # all copies of the software and related documentation, and (ii) the names of
  11. # Sam Leffler and Silicon Graphics may not be used in any advertising or
  12. # publicity relating to the software without the specific, prior written
  13. # permission of Sam Leffler and Silicon Graphics.
  14. # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 
  15. # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 
  16. # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  
  17. # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
  18. # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
  19. # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  20. # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF 
  21. # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 
  22. # OF THIS SOFTWARE.
  23. #
  24.  
  25. #
  26. # These definitions are for building the software on a Dec/ultrix system
  27. # using gcc 2.4.5 and libg++-2.4
  28. #
  29. # TARGET:    ultrix
  30. # COMPILER:    gcc
  31. #
  32. SHELL    = /bin/bash
  33. DESTDIR    = .
  34. NULL    =
  35. MAKEFILE= Makefile
  36.  
  37. #
  38. # Location of auxiliary stuff needed
  39. #
  40. PORT    = ${DEPTH}/port/ultrix
  41. GENERIC    = ${DEPTH}/port/generic
  42. #
  43. # Basic tools used in the build process.
  44. #
  45.  
  46. C++    = /usr/local/bin/g++
  47. CC    = /usr/local/bin/gcc
  48. NAWK    = /bin/awk
  49. INSTALL    = bash ${PORT}/install.sh
  50. MKDEPEND= bash ${GENERIC}/mkdepend
  51. AR    = /bin/ar
  52. RANLIB    = /usr/bin/ranlib
  53. SED    = /bin/sed
  54.  
  55. #
  56. # AR options for creating/updating an archive
  57. #
  58. AROPTS=    crl
  59.  
  60. #
  61. # Special options for lptops compilation (yech).
  62. #
  63. LPTOPSLCOPTS=
  64.  
  65. #
  66. # ultrix execs getty to do the work.
  67. #
  68. SYSGETTY=GettyBSD.c++
  69.  
  70. #
  71. # ultrix wants SYSV-style UUCP lock support.
  72. #
  73. UUCP_LOCKDIR=/var/spool/uucp
  74. UUCP_LOCKTYPE=0
  75. UUCP_LOCKMODE=0644
  76.  
  77. #
  78. # Location of Adobe Font Metrics for lptops.
  79. #
  80. AFMDIR=/usr/local/lib/afm
  81.  
  82. #
  83. # PostScript imager for server.  PSPACKAGE is one of:
  84. #
  85. # dps    for Display Postscript
  86. # gs    for Ghostscript
  87. #
  88. # and PSIMAGER is the pathname of the binary executable.
  89. #
  90. PSPACKAGE=gs
  91. PSIMAGER=/usr/local/bin/gs
  92.  
  93. #
  94. # Mail program sending notification messages.
  95. #
  96. FAX_MAILCMD=/usr/ucb/mail
  97. SENDMAIL=/usr/lib/sendmail
  98.  
  99. #
  100. # Default optimizer and prototype options
  101. #
  102. OPTIMIZER=-g
  103. #PROTOTYPES=-prototypes
  104. CVERSION=-D__ANSI_CPP__
  105. GVERSION=
  106. C++FILE=-x c++
  107.  
  108. # default definitions for programs--overide them as desired
  109. LIBS=    ${LIBUTIL} ${LIBTIFF} ${LIBIV} ${LIBPORT}
  110. LLDLIBS=${LIBS} ${MACHDEPLIBS}
  111.  
  112. #
  113. # Libraries that may vary from machine to machine (especially if
  114. # you use GNU GCC instead of AT&T C++).
  115. #
  116. MACHDEPLIBS=-lg++
  117. #
  118. # You must have v3.0 or newer of the TIFF library.  If
  119. # you already have it installed, or if you have version 3.0
  120. # or newer of InterViews installed (which includes the TIFF
  121. # library), you can point these to those places.  Otherwise,
  122. # you can just use the code provided here.
  123. #
  124. TIFF=    ${DEPTH}/libtiff
  125. LIBTIFF=${TIFF}/libtiff.a
  126. #
  127. # If you already have InterViews 3.0 or newer installed,
  128. # define these to be something like:
  129. #
  130. #IV=    /usr/include
  131. #LIBIV=    /usr/lib/libIV.a
  132. # Otherwise you can just use the subset of classes used by
  133. # the fax software and collected here in a hacked-up library.
  134. #
  135. IV=    ${DEPTH}/iv
  136. LIBIV=    ${IV}/libivhack.a
  137. # random utility functions and classes
  138. UTIL=    ${DEPTH}/util
  139. LIBUTIL=${UTIL}/libfaxutil.a
  140. LIBPORT=${PORT}/libport.a
  141.  
  142. #
  143. # Uid&Gid for installing server stuff.  Note that the server process
  144. # proper (/usr/etc/faxd or similar) must either run setuid root or
  145. # setuid uucp (i.e. fax and uucp must have the same uid).  This is
  146. # so that the fax server can participate in the UUCP locking scheme
  147. # and thereby implement tty line sharing (i.e. share the same line
  148. # and modem for both fax and data).
  149. #
  150. FAXUSER=uucp
  151. FAXGROUP=uucp
  152.  
  153. #
  154. # Directories where stuff gets placed:
  155. #
  156. # BIN        client-directed applications
  157. # LIBDATA       client-directed application library data files
  158. # LIBEXEC       client-directed application library executables
  159. # SPOOL        spooling area for servers
  160. # DOC        non-manual documentation
  161. # USRETC    place for servers (faxd & faxd.recv)
  162. #
  163. BIN=/usr/local/bin
  164. LIBDATA=/usr/local/lib/fax
  165. LIBEXEC=/usr/local/lib/fax
  166. SPOOL=/var/spool/fax
  167. DOC=/usr/local/doc/flexfax
  168. USRETC=/usr/local/etc
  169. #
  170. # Manual-related controls:
  171. #
  172. # MAN        head of manual tree
  173. # MANAPP    subdirectory for stuff in BIN
  174. # MANSYS    subdirectory for server & server-related apps
  175. # MANFILES    subdirectory for file format info 
  176. # PAGEDIRT    temp files to remove on clean/clobber
  177. #
  178. MAN    =/usr/man
  179. MANAPPS    = man1
  180. MANSYS    = man8
  181. MANFILES= man5
  182.  
  183. MANCAPP    = ${CLIENTAPPS}
  184. MANCFILE= ${CLIENTFILES:.4f=.5f}
  185. MANSAPP    = ${SERVERAPPS:.1m=.8c}
  186. MANSFILE= ${SERVERFILES:.4f=.5f}
  187. PAGEDIRT= ${MANCFILE} ${MANSAPP} ${MANSFILE}
  188.  
  189. .SUFFIXES: .1m .4f .5f .8c
  190. .1m.8c:; ${SED} -e 's/1M/8C/' -e 's/4F/5F/' $< > $@
  191. .4f.5f:; ${SED} -e 's/1M/8C/' -e 's/4F/5F/' $< > $@
  192.  
  193. # programs used during installation
  194. ECHO=    /bin/echo
  195. GREP=    /usr/ucb/grep
  196. RM=    /bin/rm
  197. PWD=    /bin/pwd
  198. CHROOT=    /usr/bin/chroot
  199.  
  200. #
  201. # Definitions used by common rules.
  202. #
  203. COMMONRULES=${DEPTH}/rules
  204. COMMONTARGS= clobber clean rmtargets depend
  205. #COMMONTARGS= clobber clean rmtargets depend incdepend
  206.  
  207. #
  208. # C compiler flags are composed of variable (set on the command line),
  209. # local (defined in the makefile), and global (defined in this file)
  210. # parts, in that order.  This ordering is used so that variable or
  211. # locally specified include directories are searched before the globally
  212. # specified ones.
  213. #
  214. CFLAGS=    ${CVERSION} ${VCFLAGS} ${LCFLAGS} ${GCFLAGS}
  215.  
  216. VCFLAGS=${VCDEFS} ${VCINCS} ${VCOPTS}
  217. LCFLAGS=${LCDEFS} ${LCINCS} ${LCOPTS}
  218. GCFLAGS=${GCDEFS} ${GCINCS} ${GCOPTS}
  219.  
  220. COPTS=    ${VCOPTS} ${LCOPTS} ${GCOPTS}
  221. CDEFS=    ${VCDEFS} ${LCDEFS} ${GCDEFS}
  222. CINCS=    ${VCINCS} ${LCINCS} ${GCINCS}
  223.  
  224. GCOPTS=    ${OPTIMIZER} ${PROTOTYPES}
  225. GCDEFS=
  226. GCINCS=    -I- -I. -I${DEPTH} -I${PORT} -I${GENERIC} -I${UTIL} -I${TIFF}
  227. #
  228. # C++ flags are decomposed using the same hierarchy as C flags.
  229. #
  230. C++FLAGS=${CVERSION} ${VC++FLAGS} ${LC++FLAGS} ${GC++FLAGS}
  231.  
  232. VC++FLAGS=${VC++DEFS} ${VC++INCS} ${VC++OPTS}
  233. LC++FLAGS=${LC++DEFS} ${LC++INCS} ${LC++OPTS}
  234. GC++FLAGS=${GC++DEFS} ${GC++INCS} ${GC++OPTS}
  235.  
  236. C++OPTS=${VC++OPTS} ${LC++OPTS} ${GC++OPTS}
  237. C++DEFS=${VC++DEFS} ${LC++DEFS} ${GC++DEFS}
  238. C++INCS=${VC++INCS} ${LC++INCS} ${GC++INCS}
  239.  
  240. GC++OPTS=${OPTIMIZER}
  241. GC++INCS=-I. -I${DEPTH} -I${PORT} -I${GENERIC} -I${UTIL} -I${IV} -I${TIFF}
  242. GC++DEFS=
  243.  
  244. #
  245. # Loader flags, composed of library (-l's) and option parts, with
  246. # the libraries appearing last.  Both of these are divided into variable,
  247. # local, and global parts.  The composition of LDFLAGS is done in the
  248. # other "direction" from CFLAGS so that all the -L's, that are part of
  249. # LDOPTS, appear before any of the -l's, which are part of LDLIBS.
  250. # Another benefit of segregating the libraries from the remaining of the
  251. # loader options is that the libraries alone can easily be given to
  252. # another program, e.g., lint.
  253. #
  254. # Notes:
  255. #   - If a program should not be linked with the shared version of libc,
  256. #     then its make file should override the setting of SHDLIBC with a
  257. #     line such as "SHDLIBC=".
  258. #
  259. LDFLAGS=${LDOPTS} ${LDLIBS}
  260.  
  261. LDOPTS=${VLDOPTS} ${LLDOPTS} ${GLDOPTS}
  262. LDLIBS=${VLDLIBS} ${LLDLIBS} ${GLDLIBS}
  263.  
  264. GLDOPTS=-L${ROOT}/usr/local/lib
  265. GLDLIBS=${SHDLIBC}
  266.  
  267. #
  268. # Convenient command macros that include the flags macros.
  269. #
  270. C++F=    ${C++} ${C++FLAGS}
  271. CCF=    ${CC} ${CFLAGS}
  272.  
  273. #
  274. # Shell script for generating make dependencies.  MKDEPEND is a shorthand
  275. # for the tool's absolute pathname.  MKDEPENDC adds MKDEPCFLAGS and the -c
  276. # mkdepend option to this.  The other language's mkdepend variables try to
  277. # include their language's name in the variable names.  Unfortunately, a
  278. # lot of makefiles already use the nondescript LMKDEPFLAGS for C language
  279. # mkdepend options, so we initialize LMKDEPCFLAGS with ${LMKDEPFLAGS}.
  280. #
  281. MKDEPENDC++    =${MKDEPEND} ${MKDEPC++FLAGS} -c "${C++F} ${C++FILE} -M"
  282. MKDEPENDC    =${MKDEPEND} ${MKDEPCFLAGS} -c "${CCF} -M"
  283.  
  284. MKDEPC++FLAGS    =${VMKDEPC++FLAGS} ${LMKDEPC++FLAGS} ${GMKDEPC++FLAGS}
  285. MKDEPCFLAGS    =${VMKDEPCFLAGS} ${LMKDEPCFLAGS} ${GMKDEPCFLAGS}
  286. LMKDEPCFLAGS    =${LMKDEPFLAGS}
  287.  
  288. GMKDEPFLAGS    =-e 's@ ${INCLDIR}/@ $${INCLDIR}/@' -e 's@ ${ROOT}/@ $${ROOT}/@'
  289. GMKDEPC++FLAGS    =${GMKDEPFLAGS} -e 's@\.c++\.o *: @\.o: @'
  290. GMKDEPCFLAGS    =${GMKDEPFLAGS}
  291.  
  292. #
  293. # Macro to add to LMKDEPCFLAGS or LMKDEPC++FLAGS if your makefile builds
  294. # single-source programs using null suffix rules (e.g., .c:}.  This option
  295. # works for both C and C++ make depend.
  296. #
  297. NULLSUFFIX_MKDEPFLAG=-e 's@\.o+*:@:@'
  298. #
  299. # MKDEPFILE is the name of the dependency database, included by rules.
  300. #
  301. MKDEPFILE=Makedepend
  302. #
  303. # CDEPFILES lists all C or cc-compiled source files that depend on header
  304. # files computable by ${MKDEPENDC}.  C++DEPFILES lists all C++ files having
  305. # dependencies computable by ${MKDEPENDC++}.
  306. #
  307. C++DEPFILES=${C++FILES}
  308. CDEPFILES=${CFILES}
  309. DEPFILES=${C++DEPFILES} ${CDEPFILES}
  310.  
  311. #
  312. # Directory shorthands, mainly for make depend (see GMKDEPFLAGS above).
  313. #
  314. INCLDIR    =${ROOT}/usr/include
  315.